import request from '@/plugins/request';
// 基础设置列表
export function basicSetList(data) {
    return request({
      url: "/v1/base/common-status/index",
      method: "get",
      params: data,
    });
}
  
  //新增、更新基础设置
export function createBasicSet(data) {
    return request({
        url: "/v1/base/common-status/update-common-status",
        method: "post",
        data,
    });
}

//删除基础设置
export function deleteBasicSet(data) {
    return request({
        url: "/v1/base/common-status/delete-common-status",
        method: "post",
        data,
    });
}

// 分类列表
export function toolCategoryList(data) {
    return request({
      url: "/v1/base/tool-category/index",
      method: "get",
      params: data,
    });
}
// 素材分类详情
export function toolCategoryInfo(data) {
  return request({
    url: "/v1/base/tool-category/info",
    method: "get",
    params: data,
  });
}
// 新增素材分类
export function toolCategoryCreate(data) {
  return request({
    url: "v1/base/tool-category/create",
    method: "post",
    data,
  });
}
// 更新素材分类
export function toolCategoryUpdate(data) {
    return request({
      url: "/v1/base/tool-category/update",
      method: "post",
      data,
    });
}
// 删除素材分类（软删除）
export function toolCategoryDel(data) {
    return request({
      url: "v1/base/tool-category/delete",
      method: "post",
      data,
    });
}